package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Comments;
import cn.wolfcode.trip.base.query.CommentQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ICommentService {

    /**
     * 高级查询
     * @param qo
     * @return
     */
    PageInfo query(CommentQuery qo);

    void saveOrUpdate(Comments comment);


    List<Comments> getCommentsByStrategyId(Long strategyId);

    List<Comments> getUserByComment(Long id);

    // 查询一个人所属的游记下所有未读评论
    List<Comments> getMessagesByType(Long userId);
    // 将未读评论设置为已读
    void setMessageState(Integer state);

    List<Comments> getMessages(Long userId);

    List<Comments> getMycomments(Long userId);
}
